using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Demo.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        [HttpGet]
        public IActionResult Get()
        {
            return Ok("Hello");
        }

        [HttpPost]
        public IActionResult Post()
        {
            return Ok();
        }

        [HttpGet("{name}")]
        public IActionResult Get(string name)
        {
            return Ok("Hello "+name);
        }
    }
}
